package top.superflow.flow.runtime.mapper
import java.util

import top.superflow.exception.Exceptable
import top.superflow.flow.runtime.flow.{FlowRequest, FlowResponse}
import top.superflow.flow.runtime.inf.{GeneralRequest, GeneralResponse, ParamTypeSchema}
import top.superflow.flow.runtime.process.ProcessRequest
import top.superflow.log.Loggable

import scala.collection.mutable
import scala.collection.mutable.ListBuffer

class AutoMatchRuntimeMapper extends RuntimeMapper with Loggable with Exceptable{
  protected def generatedProcessRequest(flowRequest: FlowRequest, flowResponse: FlowResponse): ProcessRequest = {
    AutoMatchUtils.extractProcessRequestByAutoMatch(flowRequest, flowResponse, getCurrentInputSchema)
  }
}
